package com;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by laiguanglong on 2017/11/3.
 */
@Controller
public class TestController {

    @Autowired
    KafkaTemplate kafkaTemplate;

    @RequestMapping("/query/queryAllItem")
    public String queryAllItem(Model model){
        kafkaTemplate.send("test01","bootc", "bootcwnao");
        return "item/itemList";
    }

}
